

/**
 * @projectName: java-daily-questions
 * @package: PACKAGE_NAME
 * @className: BankDemo
 * @author: ZM
 * @description: 银行转账-demo
 * @date: 2021/8/21 18:23
 * @version: 1.0
 */
public class BankDemo {
    public static void main(String[] args) {
        Account account = new Account(0);
        new Thread(new Provider(account), "小明").start();
        new Thread(new Consumer(account), "小明").start();
    }
}
